 body {
    font-family: Arial, sans-serif;
    margin: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../img/puebloenblancoynegro.jpg') center/cover no-repeat;
  opacity: 0.7; /* ← ajusta aquí la transparencia (0 = invisible, 1 = opaco) */
  z-index: -1; /* para que quede detrás del contenido */
}
  header {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 10px;
    background-color: #333;
    color: white;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  }
  header h1 {
    margin: 0;
    font-size: 2rem;
  }
  .collage {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    flex-grow: 1;
    padding: 20px;
  }
  .photo-card {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, z-index 0.3s ease;
    background: rgb(255, 255, 255);
    padding: 8px;
    /* Rotaciones aleatorias aplicadas via JavaScript */
  }
  .photo-card:hover {
    transform: scale(1.1) !important;
    z-index: 100;
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  }
  .photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
  }
  .info-text {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 4px;
    text-align: center;
    backdrop-filter: blur(4px);
  }

  /* Tamaños variados para efecto collage */
  .small {
    width: 140px;
    height: 140px;
  }
  .medium {
    width: 220px;
    height: 160px;
  }
  .large {
    width: 300px;
    height: 200px;
  }
  .extra-large {
    width: 350px;
    height: 250px;
  }

  /* Estilos footer */
  footer {
  text-align: center;
  background: #eee;
  padding: 20px;
  font-size: 0.9rem;
}

footer a {
  display: inline-block;
  margin-top: 10px;
  color: #6c63ff;
  text-decoration: none;
  font-weight: bold;
}

  /* Modal/lightbox */
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
  }
  .modal.open {
    display: flex;
  }
  .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    background: #000;
  }
  .modal-content img {
    width: 100%;
    height: auto;
    display: block;
  }
  .modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 2px 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
  }
  .modal-close:hover {
    background: rgba(255,255,255,0.3);
    color: black;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .collage {
      gap: 15px;
      padding: 10px;
    }
    .photo-card {
      transform: none !important; /* Desactivar rotaciones en móvil */
    }
    .photo-card:hover {
      transform: scale(1.05) !important;
    }
  }